import React, { Component } from 'react';

import Top from './allshop/Top';
import Header from './commonality/Header';
import Search from './commonality/Search';
import List from './allshop/List';
import Screen from './allshop/Screen';

// import Header from './commonality/Header';

import {searchshop , hotsearch} from '../api/api.js'

class Allshop extends Component {
    constructor(props){
        super(props)
    }
    
    componentDidMount(){
        hotsearch().then((res) => {
            console.log(res.data);
        })
        searchshop( {id:282657} ).then((res) => {
            console.log(res.data);
        })
    }

    render() {
        return (
            <div className='allshop'>
                <Header> 全部商品 </Header>
                <Search />
                <Screen />
                <List />
            </div>
        );
    }
}

export default Allshop;